package demo.boat.boatSystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 船舶航次
 * </p>
 *
 * @author boat
 * @since 2022-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ShpVesselVoyages对象", description="船舶航次")
public class ShpVesselVoyages implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "航次ID")
    @TableId(value = "VVY_ID", type = IdType.AUTO)
    private BigDecimal vvyId;

    @ApiModelProperty(value = "艘次ID")
    @TableField("VVY_VSD_ID")
    private BigDecimal vvyVsdId;

    @ApiModelProperty(value = "航次名称")
    @TableField("VVY_NM")
    private String vvyNm;

    @ApiModelProperty(value = "进出口标记")
    @TableField("VVY_IE_FG")
    private BigDecimal vvyIeFg;

    @ApiModelProperty(value = "内外贸标记")
    @TableField("VVY_IF_FG")
    private BigDecimal vvyIfFg;

    @ApiModelProperty(value = "航次状态")
    @TableField("VVY_STATE_FG")
    private BigDecimal vvyStateFg;

    @ApiModelProperty(value = "船舶ID")
    @TableField("VVY_VLS_ID")
    private BigDecimal vvyVlsId;

    @ApiModelProperty(value = "实际开工时间")
    @TableField("VVY_ACTUAL_START_TM")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date vvyActualStartTm;

    @ApiModelProperty(value = "实际完工时间")
    @TableField("VVY_ACTUAL_END_TM")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date vvyActualEndTm;

    @ApiModelProperty(value = "货物名称")
    @TableField("VVY_GOD_NM")
    private String vvyGodNm;

    @ApiModelProperty(value = "计划开工时间")
    @TableField("VVY_PLAN_START_TM")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date vvyPlanStartTm;


    @ApiModelProperty(value = "计划完工时间")
    @TableField("VVY_PLAN_END_TM")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date vvyPlanEndTm;

    @ApiModelProperty(value = "中文名")
    @TableField(exist = false)
    private String vlsChnnm;

    @ApiModelProperty(value = "ID")
    @TableField(exist = false)
    private BigDecimal godId;

    @ApiModelProperty(value = "数量")
    @TableField(exist = false)
    private BigDecimal godAmount;
    @TableField(exist = false)
    private List<DocManifestes> docManifestes;
}
